﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UserListCtl.ascx.cs" Inherits="Admin_MemberAdmin_Controls_UserListCtl" %>
<%@ Register Assembly="Microsoft.Practices.Web.UI.WebControls" Namespace="Microsoft.Practices.Web.UI.WebControls"
    TagPrefix="pp" %>
<pp:ObjectContainerDataSource ID="ObjectContainerDataSource1" runat="server" OnSelecting="GetUsers"
    DataObjectTypeName="Ornament.MemberShip.User"  UsingServerSorting="True" UsingServerPaging="True" />
<p>
    <button onclick="javascript: ClickThickBox('Member/CreateUserWizard.aspx?keepThis=true&TB_iframe=true&height=500&width=700&modal=true')"
        class="iconButton userAdd">
        添加用户</button>
    <asp:TextBox ID="SearchTextBox" runat="server"></asp:TextBox><asp:DropDownList ID="dropDownlistSearchType"
        runat="server">
        <asp:ListItem Value="loginid" Text="登录名"></asp:ListItem>
        <asp:ListItem Value="email" Text="E-mail"></asp:ListItem>
        <asp:ListItem Value="phone" Text="电话"></asp:ListItem>
    </asp:DropDownList>
    <asp:ImageButton ID="imageButton1" runat="server" ImageUrl="~/App_Themes/AdminBlueGreen/images/zoom.png"  OnClick="search"/>
</p>
<div>
    <asp:GridView ID="ListView1" DataKeyNames="LoginId" runat="server" DataSourceID="ObjectContainerDataSource1"
        CssClass="dataGrid" AutoGenerateColumns="False">
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="LoginId" DataNavigateUrlFormatString="~/admin/member/UserEdit.aspx?loginid={0}"
                DataTextField="LoginId" HeaderText="登录名" />
            <asp:BoundField HeaderText="显示名称" DataField="Name" />
            <asp:BoundField HeaderText="Email" DataField="Email" />
            <asp:BoundField HeaderText="电话" DataField="Phone" />
            <asp:BoundField HeaderText="注册时间" DataField="CreateTime" />
        </Columns>
        <EmptyDataTemplate>
            没有数据
        </EmptyDataTemplate>
    </asp:GridView>
</div>
